package jmg

const (
	winHistorySize = 20
	minCards       = 2 // 牌堆剩余的最少牌张数
	totalCards     = 8 * 52

	// 牌路相关
	maxColumn = 48 // 最大48列
	line      = 6  // 每列6行

	colorsCount   = 4  // 4个花色
	cardsNumCount = 13 // A:K 13张牌

	// 新牌路相关
	redPoint   = 1 // 列整齐或前面有粒为红
	blackPoint = 0 // 列不整齐或前面无粒为黑

	startRow = 2 // 牌路起始点行

	BigEyeStartCol    = 2 // 大眼路起始列
	SmallRoadStartCol = 3 // 小路起始列
	RoachRoadStartCol = 4 // 蟑螂路起始列
)

var (
	payRateConf = map[int32]int32{ //中奖倍数  key是数量  value是倍数
		2: 3,
		3: 5,
		4: 10,
		5: 20,
		6: 100,
	}

	HitIndexConf = map[int32]int32{ //骰子摇出概率  key是骰子的索引 value是开出的概率
		0: 100,
		1: 100,
		2: 100,
		3: 100,
		4: 100,
		5: 100,
	}

	allBetIndexes = []int32{0, 1, 2, 3, 4, 5} //所有可下注的索引

	DicePatternConf = map[int][][]int32{ //骰子图案分布
		1: {{6}},
		2: {{5, 1}, {4, 2}, {3, 3}},
		3: {{4, 1, 1}, {3, 2, 1}, {2, 2, 2}},
		4: {{3, 1, 1, 1}, {2, 2, 1, 1}},
		5: {{2, 1, 1, 1, 1}},
		6: {{1, 1, 1, 1, 1, 1}},
	}
)

type HitRateConf struct {
	Rate         int32
	DiceIndexMap map[int32]int32
}
